#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include<QVector>
#include"staining_method.h"
#include"union_find.h"
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void setData();
    QString to_Sting(bool flag);
private slots:
    void on_pushButton_qingkong_clicked();

    void on_pushButton_ranse_clicked();

    void on_pushButton_bingchaji_clicked();

    void on_pushButton_tuichu_clicked();

private:
    Ui::Widget *ui;
    QVector<QVector<int>> Data;
    int n;
};
#endif // WIDGET_H
